package edu.del.springbootredisbusinesspractice.mapper;

import edu.del.springbootredisbusinesspractice.pojo.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 27917
* @description 针对表【orders(订单主表)】的数据库操作Mapper
* @createDate 2025-09-28 19:05:27
* @Entity edu.del.springbootredisbusinesspractice.pojo.Orders
*/
public interface OrdersMapper extends BaseMapper<Orders> {

    /**
     * 根据订单号查询订单
     * @param orderNo 订单号
     * @return 订单
     */
    Orders selectByOrderNo(String orderNo);

    /**
     * 查询未支付订单列表
     * @param id 用户id
     * @return 订单列表
     */
    List<Orders> unpaidOrderList(Integer id);
}




